package com.qingneng.probiz.dao;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.qingneng.probiz.vo.ProClientInfo;

@SuppressWarnings("rawtypes")
public  class ProClientInfoDAOImpl extends SqlMapClientDaoSupport implements IProClientInfoDAO {
	
	public List queryProClientInfo(ProClientInfo bean) {
		List list = getSqlMapClientTemplate().queryForList("qn_db__pro_client_info.select_proclientinfo_sql",bean);
		return list;
	}

	public Integer queryTotalCount(ProClientInfo bean) {
		Integer total =  (Integer)getSqlMapClientTemplate().queryForObject("qn_db__pro_client_info.select_proclientinfo_count_sql",bean);	
		return total;
	}
	
	public void insert(ProClientInfo bean) {
		getSqlMapClientTemplate().insert("qn_db__pro_client_info.abatorgenerated_insert",bean);
	}
	
	public void delete(ProClientInfo bean) {
		getSqlMapClientTemplate().delete("qn_db__pro_client_info.abatorgenerated_deleteByPrimaryKey",bean);
		
	}
	
	public void update(ProClientInfo bean) {
		getSqlMapClientTemplate().update("qn_db__pro_client_info.abatorgenerated_updateByPrimaryKey", bean);
		
	}
	
	
}